<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/fuman/css/style.default.css" type="text/css" />
<script type="text/javascript" src="/fuman/js/plugins/jquery-1.7.min.js"></script>
<script language="javascript">
	function getordersearch()
	{
		var ordersearchID = $("#ordersearch").val();	
		 $.post("/orderlist/ajaxbutton", {"op": "getordersearch", "ordersearchID": ordersearchID},
		 function (data) {
			 if(data)
			 {
				 $("#showcount").hide();
				$("#orderlist").val(data);
			 }
		}, "text");
	}
	function save()
	{
		  if (confirm("你确定修改吗?")) {
			$("#otherForm").submit();
		  }
	}
</script>
<title>批量修改订单</title>
<body class="withvernav">
<div class="bodywrapper">

<!--pageheader-->
 <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
    <thead>
      <tr>
        <th colspan="2" class="head1">批量修改订单</th>
      </tr>
    </thead>
  </table>
  <table border="0" width="100%" id="table19" class="stdtable" cellspacing="0" cellpadding="0">

   <tr>
      <td>
      <div style="padding:5px;" align="center">{{if $isok}}<font color="red"><B><font size="+1">{{$isok}}<br></font></B></font>{{/if}}</div>
            <div id="basicform" class="subcontent">
                <form class="stdform stdform2" id="otherForm" method="post" enctype='multipart/form-data'
                      action="/orderlist/ajaxbutton?op=saveBulkchanges">
					
                    <p>
                    	<label>自定义搜索</label>
                    	 <span class="field">
                           <select name="ordersearch"  id="ordersearch" onChange="getordersearch()">
                            <option value="">-选择自定义-</option>
                             {{foreach from=$ordersearch item=li key=key}}
                                 <option value="{{$li.id}}">{{$li.name}}</option>
                            {{/foreach}}
                            </select>     
                        </span>
                    </p>
                  
                   
                
                    <p>
                        <label>订单编号</label>
                            <span class="field">
                       <textarea name="orderlist" id="orderlist" cols="10" rows="20">{{$orderlist}}</textarea> 一行一个订单号
                       <br><font color=red id="showcount"><B>合计{{$countorder}}个订单</B></font>
                            </span>
                    </p>
					
                      <p>
                    	<label>批量设置配送方式</label>
                    	 <span class="field">
                           <select name="expresstype" id="expresstype">
                            <option value="0">-取消现有的配送方式-</option>
                             {{foreach from=$expresstype item=li key=key}}
                                 <option value="{{$li.id}}">{{$li.name}}</option>
                            {{/foreach}}
                            </select>     
                        </span>
                    </p>
                  
                  
                    <p class="stdformbutton">
                        	<button type="button" class="btn btn-primary"  onclick="save()"> 提交 </button>
                      
                    </p>
                </form>

                <br/>

          <!--subcontent-->

            <!--subcontent-->

        </div><!--contentwrapper-->
	</td>

   </tr>
</table>

</div>

  
  
  <!-- /.modal -->
</body>
</html>